package department

import (
	"ginfwk/framework/core/gins"
)

type AdminDepartment struct {
	Department
}

func (a *AdminDepartment) Register(r gins.IRoutes) {
	g := r.Group("/department")
	{
		// 部门选项Api
		g.GET("/options", a.Department.Options)

		// 部门表格数据列表
		g.GET("/list", a.Department.List)

		// 部门保存
		g.POST("/info", a.Department.Save)

		// 部门详情
		g.GET("/info", a.Department.Info)

		// 部门删除
		g.POST("/delete", a.Department.Delete)
	}
}
